package day03;

import java.util.Scanner;

public class MainTest2 {
    public static void main(String[] args) {
        int i=1;
        while (i<=50){
            System.out.println("打印第"+i+"遍试卷");
            i++;
        }

        System.out.println("检查作业是否及格(y/n)");
        Scanner input = new Scanner(System.in);
        String answer = input.next();


        while (answer.equals("n")) {
            //循环操作
            System.out.println("上午阅读教材，学习理论知识");

            System.out.println("检查作业是否及格(y/n)");
            answer = input.next();

        }
    }
}
